<#--
/****************************************************
 * Description: 用户组角色的简单列表页面，没有编辑功能
 * Copyright:   Copyright (c) 2013
 * Company:     beiwaionline
 * @author      bfsu
 * @version     1.0
 * @see
	HISTORY
    *  2013-08-08 bfsu Create File
**************************************************/
-->
<#include "/view/templates/ace/ace-inc.ftl">
<@list>
    <thead>
        <tr>
            <th><input type="checkbox" class="bscheckall"></th>
            <th>角色名称</th>
            <th>默认角色</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    <#if page.items??>
        <#list page.items as item>
        <tr>
            <td><input type="checkbox" class="bscheck" value='${item.id}' data="id:${item.id}"></td>
            <td>
                ${item.role.title}
            </td>
            <td>
                ${getIntText(item.isDefault)}
            </td>
            <td>
            	<#if item.isDefault=isdefault>
            	<@button icon="remove" type="primary" size="sm" onclick="bfsu.del('${base}/components/security/groupRole/romoveDefault/${item.id}','取消默认角色？');">取消默认</@button>
                <#else>
                <@button icon="ok" type="primary" size="sm" onclick="bfsu.del('${base}/components/security/groupRole/setDefault/${item.id}','设为默认角色？');">设为默认</@button>
                </#if>
                <@button icon="remove" type="primary" size="sm" onclick="bfsu.del('${base}/components/security/groupRole/delete/${item.id}','从用户组中删除该角色？');">删除</@button>
            </td>
        </tr>
        </#list>
        </#if>
    </tbody>
</@list>